/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package camel.client;

import java.io.Serializable;

/**
 *
 * @author mac
 */
public class ClientEvent implements Serializable{
    private static final long serialVersionUID = 1L;

    // this field can be used for delay calculation
    private long creationTime = System.currentTimeMillis();
    
    // this field is open for general usage
    private long generalInfo;
    
    // if there is no specific target, this message will be broadcasted to everyone in the session (except fot the publisher)
    private String specificTarget;
    
    // the publisher does not have to fill this field, because 1) the server already know who sent this event 2) prevent spoofing
    // however, the subscriber would see this field automatically filled by the server
    private String originator;

    public long getLocalTime() {
        return creationTime;
    }

    public long getGeneralInfo() {
        return generalInfo;
    }

    public void setGeneralInfo(long generalInfo) {
        this.generalInfo = generalInfo;
    }

	public void setSpecificTarget(String specificTarget) {
		this.specificTarget = specificTarget;
	}

	public String getSpecificTarget() {
		return specificTarget;
	}

	public void setOriginator(String originator) {
		this.originator = originator;
	}

	public String getOriginator() {
		return originator;
	}
}
